<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8>">
<title>Regular GBK</title>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link href="misc/style.css" rel="stylesheet" type="text/css">
<base href="<?php echo SITE_URL?>" />
<script type="text/javaScript" src="misc/config.js"></script>
<script type="text/javaScript" src="misc/jquery.min.js"></script>
<script type="text/javaScript" src="misc/common.js"></script>
<script type="text/javaScript" src="misc/admin.js"></script>
<script type="text/javascript" src="misc/validator.js"></script>

</head>
<body>

<form action="./index.php?profile=<?=$profile?>&file=<?=$file?>&action=<?=$action?>&contentid=<?=$contentid?>" method="post" name="myform" enctype="multipart/form-data">

<table cellpadding="0" cellspacing="1" class="table_form">
  <caption>伪原创工具 - Regular - id: <?=$contentid?></caption>
    <tr>
      <td></td>
      <td>
	  <input type="hidden" name="forward" value="<?=$forward?>">
	  <input type="submit" name="dosubmit" value=" 确定 ">
      &nbsp; <input type="button" name="preview" value=" 预览 " onClick="preview_content();">
      &nbsp; <input type="reset" name="reset" value=" 清除 ">
	  &nbsp;<input type="button" name="" value="修改下一篇" onClick="location.href='./'">	  
	  &nbsp;<input type="button" name="" value="删除该条文章" onClick="location.href='./?action=delete&contentid=<?=$contentid?>'">	  
      </td>
    </tr>
 <?php
 foreach($forminfos['base'] as $field=>$info)
 {
 ?>
	<tr>
      <th width="20%"><?php if($info['star']){ ?> <font color="red">*</font><?php } ?> <strong><?=$info['name']?></strong><br />
	  <?=$info['tips']?>	  </th>
      <td><?=$info['form']?></td>
    </tr>
<?php
}
?>


 
  <?php
	if(is_array($forminfos['senior']))
	{
	 foreach($forminfos['senior'] as $field=>$info)
	 {
	 ?>
		<tr>
		  <th width="20%"><?php if($info['star']){ ?> <font color="red">*</font><?php } ?> <strong><?=$info['name']?></strong> <br />
		  <?=$info['tips']?>
		  </th>
		  <td><?=$info['form']?> </td>
		</tr>
	<?php
	} }
?>
<tr>
      <th width="20%"><strong>状态</strong><br />	  </th>
      <td>
	  <?php if($allow_manage){ ?>
	  <label><input type="radio" name="status" value="99" checked/> 发布</label>
	  <?php } ?>
	  <label style="display:none"><input type="radio" name="status" value="3" <?=$allow_manage ? '' : 'checked'?>> 审核</label>
	  <label><input type="radio" name="status" value="2"> 草稿</label>	  </td>
    </tr>
    <tr>
      <td></td>
      <td>
	  <input type="hidden" name="forward" value="<?=$forward?>">
	  <input type="submit" name="dosubmit" value=" 确定 ">
      &nbsp; <input type="button" name="preview" value=" 预览 " onClick="preview_content();">
      &nbsp; <input type="reset" name="reset" value=" 清除 ">
	  &nbsp;<input type="button" name="" value="修改下一篇" onClick="location.href='./'">	  
	  &nbsp;<input type="button" name="" value="删除该条文章" onClick="location.href='./?action=delete&contentid=<?=$contentid?>'">	   </td>
    </tr>
    
</table>

</form>
<script LANGUAGE="javascript">
<!--
function preview_content()
{
	myform.action = "preview.php";
	myform.target = "_blank"; 
	myform.submit(); 
	myform.action = "?module=<?=$module?>&action=<?=$action?>&catid=<?=$catid?>&modelid=<?=$modelid?>";
	myform.target="_self";
}
$().ready(function() {
	  $('form').checkForm(1);
	});
//-->
</script>
</body>
</html>